package com.kehutong.admin.entity;

import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import com.kehutong.admin.enums.Level;

/**
 * 区域
 * @author liuzhen (liuxing521a@163.com)
 * @createTime 2019年4月16日下午5:52:23
 */
@Table("sys_area")
public class Area extends TreeResource<Area> {

	private static final long serialVersionUID = 1L;
	
	protected Area(String id){
        super(id);
	}
	
	@Column(comment = "区域编码")
	private String code;

	@Column(comment = "区域类型（1：国家；2：省份直辖市；3：地市；4:区县）")
	private Level type;
	
	@Column(comment = "备注")
	private String remarks;
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Level getType() {
		return type;
	}

	public void setType(Level type) {
		this.type = type;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	@Override
	public int compareTo(Area o) {
		return 0;
	}

	@Override
	public boolean sortAble() {
		return false;
	}
	
}